import request from "@/utils/request";

// 查询合同到期提醒设置列表
export function listExpirationReminderSetup(query) {
  return request({
    url: "/contract/ExpirationReminderSetup/list",
    method: "get",
    params: query,
    handleError: true,
  });
}

// 查询合同到期提醒设置详细
export function getExpirationReminderSetup(expirationReminderSetupId) {
  return request({
    url: "/contract/ExpirationReminderSetup/" + expirationReminderSetupId,
    method: "get",
    handleError: true,
  });
}

// 新增合同到期提醒设置
export function addExpirationReminderSetup(data) {
  return request({
    url: "/contract/ExpirationReminderSetup",
    method: "post",
    data: data,
  });
}

// 修改合同到期提醒设置
export function updateExpirationReminderSetup(data) {
  return request({
    url: "/contract/ExpirationReminderSetup",
    method: "put",
    data: data,
  });
}

// 删除合同到期提醒设置
export function delExpirationReminderSetup(expirationReminderSetupId) {
  return request({
    url: "/contract/ExpirationReminderSetup/" + expirationReminderSetupId,
    method: "delete",
  });
}
